package com.lanchetech.dao;
import com.lanchetech.bean.request.PageReq;
import com.lanchetech.bean.response.CoinRewardResp;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

import com.lanchetech.entity.CoinReward;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CoinRewardMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CoinReward record);

    int insertSelective(CoinReward record);

    CoinReward selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CoinReward record);

    int updateByPrimaryKey(CoinReward record);

    List<CoinRewardResp> findAllPage(PageReq req);

    CoinReward findOneBySpuId(@Param("spuId")Long spuId);

    List<CoinReward> findAllBySpuIdsAndNow(@Param("spuIds")List<Long> spuIds, @Param("now") Date now);

    int insert2(CoinReward record);


}